# -*- coding: utf-8 -*-
import datetime  
  
from django import forms  
from django.forms.extras.widgets import SelectDateWidget  
from django.utils.translation import ugettext as _  
  
year = datetime.date.today().year  
  
class SelectDateForm(forms.Form):    
    date = forms.DateField(label=u'Дата', initial=datetime.date.today,    
        widget=SelectDateWidget(years=range(year, year-100, -1)))   
    
class SelectDateStartEndForm(forms.Form):
    date_start = forms.DateField(label=u'Дата начала', initial=datetime.date.today,    
        widget=SelectDateWidget(years=range(year, year-100, -1)))
    date_end = forms.DateField(label=u'Дата конца', initial=datetime.date.today,    
        widget=SelectDateWidget(years=range(year, year-100, -1)))    